from libs.common.basepage import BasePage
from libs.common.readelement import Element
from pom.web_pom.main_page import Main_page
from testcases.conftest import browser

search = Element('login')

class Login_page(BasePage):

    def login(self, username, password):
        self.send_keys(search['账号输入框'], username, '账号输入框')
        self.send_keys(search['密码输入框'], password, '密码输入框')
        self.click(search['登录按钮'], '登录按钮')


        return Main_page()




